export interface ResponseData {
  code: number
  message: string
  ok: boolean
}

// sku平台属性
export interface SkuAtrrValue {
  id: number | string
  valueId: number | string
  attrName?: string
  valueName?: string
}
// sku照片
export interface SkuImg {
  id?: number | string
  spuImgId?: number | string
  imgUrl?: string
}
// sku销售属性
export interface SkuSaleAttrValue {
  id: number | string
  saleAttrValueId: number | string
  saleAttrName?: string
  saleAttrValueName?: string
}

// sku对象
export interface SkuData {
  category3Id: number | string
  skuName: string
  price: number | string
  skuDefaultImg: string
  skuDesc: string
  spuId: number | string
  tmId: number | string
  weight: number | string
  skuAttrValueList: SkuAtrrValue[]
  skuSaleAttrValueList: SkuSaleAttrValue[]
  id?: number | string
  isSale?: number
  skuImageList?: SkuImg[]
}

// sku返回数据
export interface SkuResponseData extends ResponseData {
  data: SkuData[]
}

// 全部sku返回数据
export interface AllSkuResponseData extends ResponseData {
  data: {
    records: SkuData[]
    total: number | string
    size: number | string
    current: number | string
    orders: []
    optimizeCountSql: boolean
    hitCount: boolean
    countId: null
    maxLimit: null
    searchCount: boolean
    pages: number | string
  }
}

// sku详情信息返回
export interface SkuInfoResponseData extends ResponseData {
  data: SkuData
}
